<?php
/*
 * @Author: CHINAKAIYUAN<sunkaiyuan@namenode.cn>
 * @Date: 2022-03-10 23:49:19
 * @LastEditTime: 2023-07-04 16:14:30
 * @LastEditors: 孙开源 && sunkaiyuan@namenode.cn
 * @Description: 
 */
/*
 * @Author: CHINAKAIYUAN<sunkaiyuan@namenode.cn>
 * @Date: 2022-03-10 23:28:10
 * @LastEditTime: 2022-03-10 23:30:28
 * @LastEditors: CHINAKAIYUAN
 * @Description: 
 */

namespace App\Models;

class TableColumn extends BaseModel
    {
    //
    public $table = "basedata_table_column";
    protected $guarded = [];
    public function filters()
        {
        return "";
        }
    protected $casts = [
        'sum'        => 'boolean',
        'multiple'   => 'boolean',
        'sortable'   => 'boolean',
        'visible'    => 'boolean',
        'filterable' => 'boolean',
        'editable'   => 'boolean',
        'auth'       => 'boolean',
        'limitget'   => 'boolean',
    ];
    public function gridtable()
        {
        return $this->belongsTo(Table::class, "table_id");
        }


    }